package cn.stylefeng.guns.sys.modular.system.controller;

import cn.hutool.core.util.ObjectUtil;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.AttendAuditBtyArchives;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPerformanceMonthCheck;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPerformanceMonthInformation;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformanceMonthCheckParam;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformanceMonthInformationParam;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformanceReceiveParam;
import cn.stylefeng.guns.sys.modular.system.model.result.AttendAuditManagerSetResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyDdpageByAccountTime;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPerformanceMonthInformationResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPerformanceSelectResult;
import cn.stylefeng.guns.sys.modular.system.service.BtyPerformanceMonthCheckService;
import cn.stylefeng.guns.sys.modular.system.service.BtyPerformanceMonthInformationService;
import cn.stylefeng.guns.sys.modular.system.service.BtyPerformancePointService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.util.ToolUtil;
import org.springframework.beans.factory.annotation.Autowired;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
 * 绩效，对app端控制器，对外开放
 *
 * @author wjk
 * @Date 2022-02-10 14:38:19
 */
@Controller
@RequestMapping("/btyPerformanceMonthCheck")
public class BtyPerformanceMonthCheckController extends BaseController {

    private String PREFIX = "/btyPerformanceMonthCheck";

    @Autowired
    private BtyPerformanceMonthCheckService btyPerformanceMonthCheckService;

    /**
     *
     */
    @Autowired
    private BtyPerformancePointService btyPerformancePointService;

    /**
     * 绩效详情
     */
    @Autowired
    private BtyPerformanceMonthInformationService btyPerformanceMonthInformationService;

//    /**
//     * 跳转到主页面
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("")
//    public String index() {
//        return PREFIX + "/btyPerformanceMonthCheck.html";
//    }
//
//    /**
//     * 新增页面
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/add")
//    public String add() {
//        return PREFIX + "/btyPerformanceMonthCheck_add.html";
//    }
//
//    /**
//     * 编辑页面
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/edit")
//    public String edit() {
//        return PREFIX + "/btyPerformanceMonthCheck_edit.html";
//    }

//    /**
//     * 新增接口
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/addItem")
//    @ResponseBody
//    public ResponseData addItem(BtyPerformanceMonthCheckParam btyPerformanceMonthCheckParam) {
//        this.btyPerformanceMonthCheckService.add(btyPerformanceMonthCheckParam);
//        return ResponseData.success();
//    }
//
//    /**
//     * 编辑接口
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/editItem")
//    @ResponseBody
//    public ResponseData editItem(BtyPerformanceMonthCheckParam btyPerformanceMonthCheckParam) {
//        this.btyPerformanceMonthCheckService.update(btyPerformanceMonthCheckParam);
//        return ResponseData.success();
//    }
//
//    /**
//     * 删除接口
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/delete")
//    @ResponseBody
//    public ResponseData delete(BtyPerformanceMonthCheckParam btyPerformanceMonthCheckParam) {
//        this.btyPerformanceMonthCheckService.delete(btyPerformanceMonthCheckParam);
//        return ResponseData.success();
//    }
//
//    /**
//     * 查看详情接口
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @RequestMapping("/detail")
//    @ResponseBody
//    public ResponseData detail(BtyPerformanceMonthCheckParam btyPerformanceMonthCheckParam) {
//        BtyPerformanceMonthCheck detail = this.btyPerformanceMonthCheckService.getById(btyPerformanceMonthCheckParam.getId());
//        return ResponseData.success(detail);
//    }
//
//    /**
//     * 查询列表
//     *
//     * @author wjk
//     * @Date 2022-02-10
//     */
//    @ResponseBody
//    @RequestMapping("/list")
//    public LayuiPageInfo list(BtyPerformanceMonthCheckParam btyPerformanceMonthCheckParam) {
//        return this.btyPerformanceMonthCheckService.findPageBySpec(btyPerformanceMonthCheckParam);
//    }


    /**
     * 1.判断当前时间，是否是在做绩效的时间，若之前,则提示；若之后则查询
     * @author wjk
     * @Date 2021-02-11
     */
    @ResponseBody
    @PostMapping("/getPerformanceDay")
    public ResponseData getPerformanceDay(){
        Map<String,String> map = this.btyPerformanceMonthCheckService.getPerformanceDay();
        return ResponseData.success(map);
    }

    /**
     * 2.后台-当前登陆者身份判断,是否有权限进入创建绩效页面；
     * @author wjk
     * @Date 2021-02-10
     */
    @ResponseBody
    @PostMapping("/checkIdentity")
    public ResponseData checkIdentity(String account){
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"失败,缺少有效的手机号!",new ArrayList<AttendAuditBtyArchives>());
        }
        Map<String,String> map = this.btyPerformanceMonthCheckService.checkIdentity(account);
        return ResponseData.success(map);
    }


    /**
     * 3.4.13督导或大店长或营运经理根据手机号，月份查询名下所有的门店信息及级别
     *
     * @author ws
     * @Date 2022-02-10
     */
    @ResponseBody
    @PostMapping("/getShopAndPointListByPhone")
    public ResponseData getShopAndPointListByPhone(String account,@RequestBody BtyPerformanceReceiveParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        //根据手机号查询名下所有门店信息
        LayuiPageInfo pageBySpec = this.btyPerformancePointService.findPageByAccountTime(account,param);
        return ResponseData.success(pageBySpec);
    }


    /**
     * 5.待提交，已提交，督导(或大店长)下属店，统计店的个数信息
     * @author wjk
     * @Date 2021-02-14
     */
    @ResponseBody
    @PostMapping("/getShopListSumByPhone")
    public ResponseData  getShopListSumByPhone(String account,@RequestBody BtyPerformanceReceiveParam param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        //根据手机号查询名下所有门店统计信息
        Map<String,String> map = this.btyPerformanceMonthCheckService.getShopListSumByPhone(account,param);
        return ResponseData.success(map);
    }

    /**
     * 6.待提交的店，点击编辑，判断是否已经创建了该店，本月的绩效信息，若已经创建，则直接进入，返回本店上月的绩效人员信息，若未创建，则创建本店上月绩效信息
     * @author wjk
     * @Date 2021-02-14
     */
    @ResponseBody
    @PostMapping("/setEmployeeListByYaoma")
    public ResponseData  setEmployeeListByYaoma(String account,@RequestBody BtyPerformanceReceiveParam param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",false);
        }
        //根据妖码创建店内绩效审核信息
        Map<String,Object> map = this.btyPerformanceMonthCheckService.setEmployeeListByYaoma(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),false);
        }
        return ResponseData.success(map.get("data"));
    }


    /**
     * 7. 添加绩效人员占比详情
     *
     * @author ws
     * @Date 2022-02-10
     */
    @ResponseBody
    @PostMapping("/editPersonZb")
    public ResponseData editPersonzb(String account,@RequestBody BtyPerformanceMonthInformationParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getId())) {
            return ResponseData.error(403,"缺少有效的人员id。",false);
        }
        Map<String,String> map = this.btyPerformanceMonthInformationService.updateZb(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),false);
        }
        return ResponseData.success(map.get("data"));
    }

    /**
     * 8.点击删除，标记删除人员
     *
     * @author ws
     * @Date 2022-02-10
     */
    @ResponseBody
    @PostMapping("/delPersonZb")
    public ResponseData delPersonzb(String account,@RequestBody BtyPerformanceMonthInformationParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getId())) {
            return ResponseData.error(403,"缺少有效的人员id。",false);
        }
        Map<String,String> map = this.btyPerformanceMonthInformationService.delPersonzb(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),false);
        }
        return ResponseData.success(map.get("data"));
    }


    /**
     * 9.点击新增人员，查询相同运营经理下的店的店内的店长，店助，运营经理，督导等的职位信息
     * @author wjk
     * @Date 2021-02-15
     */
    @ResponseBody
    @PostMapping("/getBtyArchives")
    public ResponseData getBtyArchives(String account,@RequestBody BtyPerformanceReceiveParam param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        LayuiPageInfo layuiPageInfo = this.btyPerformanceMonthCheckService.getBtyArchives(account,param);
        return ResponseData.success(layuiPageInfo);
    }

    /**
     * 10.点击添加确认，若人员中已经有了，则修改标记状态为未删除，若没有，则新增人员
     * @author wjk
     * @Date 2021-02-15
     */
    @ResponseBody
    @PostMapping("/addArchivesToPerformanceMonth")
    public ResponseData addArchivesToPerformanceMonth(String account,@RequestBody BtyPerformanceMonthInformationParam param){
        //判断手机号是否有
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",false);
        }

        //判断妖人员id是否有
        if (ToolUtil.isEmpty(param.getId())) {
            return ResponseData.error(403,"缺少有效的人员id信息。",false);
        }

        //根据妖码和人员的id 将人员调入本店
        Map<String, String> map = this.btyPerformanceMonthInformationService.addArchivesToPerformanceMonth(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),false);
        }
        return ResponseData.success(map.get("data"));
    }

    /**
     * 11.点击提交上月绩效信息，判断点数相加<=总点数的才可以提交
     * @author wjk
     * @Date 2021-02-15
     */
    @ResponseBody
    @PostMapping("/submitPerformanceMonthCheck")
    public ResponseData submitPerformanceMonthCheck(String account,@RequestBody BtyPerformanceMonthInformationParam param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",false);
        }
        //判断是否有审核信息id
        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少审核信息id。",false);
        }
        //将绩效数据提交
        Map<String, String> map = this.btyPerformanceMonthCheckService.submitPerformanceMonthCheck(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),false);
        }
        return ResponseData.success(map.get("data"));
    }

    /**
     * 12.已提交，点击查看，查询店内人员的状态信息
     * @author wjk
     * @Date 2021-02-16
     */
    @ResponseBody
    @PostMapping("/queryPerformanceMonthCheckById")
    public ResponseData queryPerformanceMonthCheckById(String account,@RequestBody BtyPerformanceMonthInformationParam param){

        List<BtyPerformanceMonthInformation> list =new ArrayList<BtyPerformanceMonthInformation>();
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",list);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",list);
        }
        //判断是否有审核信息id
        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少审核信息id。",list);
        }
        //将绩效数据提交
        Map<String, Object> map = this.btyPerformanceMonthCheckService.queryPerformanceMonthCheckById(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),list);
        }
        return ResponseData.success(map.get("data"));
    }

    /**
     * 查询当前登录督导，或者大店长，门店总数，和可做绩效的门店数量
     * @return
     */
    @ResponseBody
    @PostMapping("/tddgetShopSumMonth")
    public ResponseData tddgetShopSumMonth(String account, @RequestBody BtyPerformanceReceiveParam param){
        return btyPerformanceMonthCheckService.tddgetShopSumMonth(account, param.getTime());
    }


    /**
     * 查询待提交，待审核，被驳回，已通过的门店数量及列表
     * @param account 状态：0待提交，1提交，2.驳回,3营运经理审核通过
     * @return
     */
    @ResponseBody
    @PostMapping("/tddgetShopSumState")
    public ResponseData tddgetShopSumState(String account, @RequestBody BtyPerformanceReceiveParam param){
        return btyPerformanceMonthCheckService.tddgetShopSumState(account, param);
    }

    /**
     * 点击同步，同步该店，运营经理，督导的占比
     * @param account
     * @return
     */
    @ResponseBody
    @PostMapping("/tddSynchronousYyjlAndDd")
    public ResponseData tddSynchronousYyjlAndDd(String account, @RequestBody BtyPerformanceReceiveParam param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",false);
        }
        return btyPerformanceMonthCheckService.tddSynchronousYyjlAndDd(account, param.getYaoma());
    }












    /**
     * 13  查看总驳回原因
     *
     * @author wjk
     * @Date 2022-04-07
     */
    @ResponseBody
    @PostMapping("/tddgetDismissedTotal")
    public ResponseData tddgetDismissedTotal(String account,@RequestBody BtyPerformanceMonthInformationParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少有效审核信息。",false);
        }
        //根据手机号查询名下所有门店信息
        BtyPerformanceMonthInformationResult btyPerformanceMonthInformationResult = this.btyPerformancePointService.tddgetDismissedTotal(account,param);
        return ResponseData.success(btyPerformanceMonthInformationResult);
    }

    /**
     * 14  查看总驳回原因详情
     *
     * @author wjk
     * @Date 2022-04-07
     */
    @ResponseBody
    @PostMapping("/tddgetDismissedList")
    public ResponseData tddgetDismissedList(String account,@RequestBody BtyPerformanceMonthInformationParam param) {
        List<BtyPerformanceMonthInformation> list =new ArrayList<BtyPerformanceMonthInformation>();
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",list);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",list);
        }
        //判断是否有审核信息id
        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少审核信息id。",list);
        }
        //查询提交的绩效详情信息
        Map<String, Object> map = this.btyPerformanceMonthCheckService.queryPerformanceMonthCheckAndDismissedById(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),list);
        }
        return ResponseData.success(map.get("data"));
    }


    /**
     * 15 运营经理查看 门店总数，可做绩效 的门店数量
     *
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tYyjlgetShopSumMonth")
    public ResponseData tYyjlgetShopSumMonth(String account,@RequestBody BtyPerformanceReceiveParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        //根据手机号查询名下所有门店信息
        Map<String,String> map = this.btyPerformancePointService.tYyjlgetShopSumMonth(account,param);
        return ResponseData.success(map);
    }




    /**
     * 16 运营经理，待审核，已驳回，已通过的店列表
     *
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlgetShopStateListPage")
    public ResponseData tyyjlgetShopStateListPage(String account,@RequestBody BtyPerformanceReceiveParam param) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        //根据手机号查询名下所有门店信息
        LayuiPageInfo pageBySpec = this.btyPerformancePointService.tyyjlgetShopStateListPage(account,param);
        return ResponseData.success(pageBySpec);
    }



    /**
     * 17 运营经理查询下属的督导列表,不分页全部
     *
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlgetHisDyList")
    public ResponseData tyyjlgetHisDyList(String account) {
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        //根据手机号查询名下所有督导名字
        List<BtyPerformanceSelectResult> list = this.btyPerformancePointService.tyyjlgetHisDyList(account);
        return ResponseData.success(list);
    }










    /**
     * 18 运营经理查询待审核店面详情列表，查询提交的绩效详情信息，包含最后一次的驳回原因
     *
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlgetAuditList")
    public ResponseData tyyjlgetAuditList(String account,@RequestBody BtyPerformanceMonthInformationParam param) {
        List<BtyPerformanceMonthInformation> list =new ArrayList<BtyPerformanceMonthInformation>();
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",list);
        }
        //判断妖码是否有效
        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",list);
        }
        //判断是否有审核信息id
        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少审核信息id。",list);
        }
        //查询提交的绩效详情信息
        Map<String, Object> map = this.btyPerformanceMonthCheckService.queryPerformanceMonthCheckAndDismissedById(account,param);
        if(String.valueOf(map.get("flag")).equals("false")){
            return ResponseData.error(403,String.valueOf(map.get("message")),list);
        }
        return ResponseData.success(map.get("data"));
    }






    /**
     * 19  运营经理提交驳回，原因，列表
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlsetDismissedList")
    public ResponseData tyyjlsetDismissedList(String account, @RequestBody List<BtyPerformanceMonthInformationResult> param){

        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        if (param.size() == 0) {
            return ResponseData.error(403,"缺少有效的人员驳回信息。",false);
        }
        boolean falg = this.btyPerformanceMonthCheckService.tyyjlsetDismissedList(account,param);
        if(falg){
            return ResponseData.success(falg);
        }else{
            return ResponseData.error(403,"提交失败，没有权限操作此店数据,或者本店已经被通过或驳回。",falg);
        }
    }




    /**
     * 20     运营经理提交总驳回原因
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlSetDismissedTotal")
    public ResponseData tyyjlSetDismissedTotal(String account, @RequestBody BtyPerformanceMonthInformationResult param){

        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }

        if (ToolUtil.isEmpty(param.getYaoma())) {
            return ResponseData.error(403,"缺少有效的妖码。",false);
        }

        if (ToolUtil.isEmpty(param.getBtyPerformanceMonthCheckId())) {
            return ResponseData.error(403,"缺少驳回的信息。",false);
        }
        boolean falg = this.btyPerformanceMonthCheckService.tyyjlSetDismissedTotal(account,param);
        if(falg){
            return ResponseData.success(falg);
        }else{
            return ResponseData.error(403,"提交失败，没有权限操作此店数据,或者本店已经被通过或驳回。",falg);
        }
    }


    /**
     * 21  运营经理批量通过按钮
     * @author wjk
     * @Date 2022-04-06
     */
    @ResponseBody
    @PostMapping("/tyyjlSetStateApproved")
    public ResponseData tyyjlSetStateApproved(String account, @RequestBody List<BtyDdpageByAccountTime> param){
        //判断手机号是否有效
        if (ToolUtil.isEmpty(account)) {
            return ResponseData.error(403,"缺少有效的手机号。",false);
        }
        if (param.size() == 0) {
            return ResponseData.error(403,"缺少有效的店信息。",false);
        }
        boolean falg = this.btyPerformanceMonthCheckService.tyyjlSetStateApproved(account,param);
        if(falg){
            return ResponseData.success(falg);
        }else{
            return ResponseData.error(403,"提交失败，没有权限操作此数据,或者店已经被通过或驳回。",falg);
        }
    }


}


